package com.momo.seckilling.mapper;


import com.momo.seckilling.entity.SeckillProductInfo;
import com.momo.seckilling.vo.SeckillProductInfoVo;

import java.util.List;

/**
 * Created by li on 2019/3/9.
 */
public interface SeckillProductMapper {
    public void saveSeckillProduct(SeckillProductInfo seckillProductInfo);

    List<SeckillProductInfo> listSeckillInfo(SeckillProductInfoVo seckillProductInfoVo);

    public void updateSeckillInfoState(SeckillProductInfo seckillProductInfo);

    public SeckillProductInfo findSeckillInfoById(int id);

    public int updateSeckillInfoBySeckNum(SeckillProductInfo seckillProductInfo);

    public SeckillProductInfo selectForUpdate(int id);

    public int updateSeckillInfoByVersion(SeckillProductInfo seckillProductInfo);
}
